import os

class Settings:
    # 应用设置
    APP_NAME: str = "Auto Audit Service"
    VERSION: str = "2.0.0"
    
    # 敏感词设置
    SENSITIVE_WORDS_FILE: str = os.getenv("SENSITIVE_WORDS_FILE", "data/sensitive_words/default.txt")
    
    # NLP设置
    ENABLE_SENTIMENT_ANALYSIS: bool = True 
    ENABLE_SPAM_DETECTION: bool = True
    ENABLE_QUALITY_CHECK: bool = True
    
    # 审核阈值设置
    REJECT_THRESHOLD: int = 30  # 得分低于此值拒绝
    REVIEW_THRESHOLD: int = 60  # 得分低于此值需人工审核
    
    # 服务设置
    HOST: str = os.getenv("AUDIT_HOST", "0.0.0.0")
    PORT: int = int(os.getenv("AUDIT_PORT", 8090))

settings = Settings() 